package br.com.absolutech.study.chapter6.pag278;

import java.util.Scanner;

/**
 * 
 * @author romulo.freitas
 * 
 * suggested program arguments:
 * "\d\d"
 *
 */
public class ScanIn {

	public static void main(String[] args) {

		System.out.print("input: ");
		System.out.flush();

		Scanner s = new Scanner(System.in);
		String token;

		do {
			token = s.findInLine(args[0]);
			System.out.println("found " + token);
		} while (token != null);


	}

}
